//
//  NSObject+Extensions.swift
//  HomeShop
//
//  Created by 刘泽 on 2018/2/10.
//  Copyright © 2018年 刘泽. All rights reserved.
//

import Foundation
public extension NSObject {
    /// The class's name
    class var className: String {
        return NSStringFromClass(self).components(separatedBy: ".").last! as String
    }
    
    /// The class's identifier, for UITableView，UICollectionView register its cell
    class var identifier: String {
        return String(format: "%@_identifier", self.className)
    }
}
